package com.tmtc.po;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import com.tmtc.po.page.PageRespository;

public class MoneyOrderRepository extends PageRespository {
	protected String orderByClause;

	protected boolean distinct;

	protected List<Criteria> oredCriteria;

	public MoneyOrderRepository() {
		oredCriteria = new ArrayList<Criteria>();
	}

	public void setOrderByClause(String orderByClause) {
		this.orderByClause = orderByClause;
	}

	public String getOrderByClause() {
		return orderByClause;
	}

	public void setDistinct(boolean distinct) {
		this.distinct = distinct;
	}

	public boolean isDistinct() {
		return distinct;
	}

	public List<Criteria> getOredCriteria() {
		return oredCriteria;
	}

	public void or(Criteria criteria) {
		oredCriteria.add(criteria);
	}

	public Criteria or() {
		Criteria criteria = createCriteriaInternal();
		oredCriteria.add(criteria);
		return criteria;
	}

	public Criteria createCriteria() {
		Criteria criteria = createCriteriaInternal();
		if (oredCriteria.size() == 0) {
			oredCriteria.add(criteria);
		}
		return criteria;
	}

	protected Criteria createCriteriaInternal() {
		Criteria criteria = new Criteria();
		return criteria;
	}

	public void clear() {
		oredCriteria.clear();
		orderByClause = null;
		distinct = false;
	}

	protected abstract static class GeneratedCriteria {
		protected List<Criterion> criteria;

		protected GeneratedCriteria() {
			super();
			criteria = new ArrayList<Criterion>();
		}

		public boolean isValid() {
			return criteria.size() > 0;
		}

		public List<Criterion> getAllCriteria() {
			return criteria;
		}

		public List<Criterion> getCriteria() {
			return criteria;
		}

		protected void addCriterion(String condition) {
			if (condition == null) {
				throw new RuntimeException("Value for condition cannot be null");
			}
			criteria.add(new Criterion(condition));
		}

		protected void addCriterion(String condition, Object value, String property) {
			if (value == null) {
				throw new RuntimeException("Value for " + property + " cannot be null");
			}
			criteria.add(new Criterion(condition, value));
		}

		protected void addCriterion(String condition, Object value1, Object value2, String property) {
			if (value1 == null || value2 == null) {
				throw new RuntimeException("Between values for " + property + " cannot be null");
			}
			criteria.add(new Criterion(condition, value1, value2));
		}

		public Criteria andIdIsNull() {
			addCriterion("id is null");
			return (Criteria) this;
		}

		public Criteria andIdIsNotNull() {
			addCriterion("id is not null");
			return (Criteria) this;
		}

		public Criteria andIdEqualTo(String value) {
			addCriterion("id =", value, "id");
			return (Criteria) this;
		}

		public Criteria andIdNotEqualTo(String value) {
			addCriterion("id <>", value, "id");
			return (Criteria) this;
		}

		public Criteria andIdGreaterThan(String value) {
			addCriterion("id >", value, "id");
			return (Criteria) this;
		}

		public Criteria andIdGreaterThanOrEqualTo(String value) {
			addCriterion("id >=", value, "id");
			return (Criteria) this;
		}

		public Criteria andIdLessThan(String value) {
			addCriterion("id <", value, "id");
			return (Criteria) this;
		}

		public Criteria andIdLessThanOrEqualTo(String value) {
			addCriterion("id <=", value, "id");
			return (Criteria) this;
		}

		public Criteria andIdIn(List<String> values) {
			addCriterion("id in", values, "id");
			return (Criteria) this;
		}

		public Criteria andIdNotIn(List<String> values) {
			addCriterion("id not in", values, "id");
			return (Criteria) this;
		}

		public Criteria andIdBetween(String value1, String value2) {
			addCriterion("id between", value1, value2, "id");
			return (Criteria) this;
		}

		public Criteria andIdNotBetween(String value1, String value2) {
			addCriterion("id not between", value1, value2, "id");
			return (Criteria) this;
		}

		public Criteria andUserIdIsNull() {
			addCriterion("userId is null");
			return (Criteria) this;
		}

		public Criteria andUserIdIsNotNull() {
			addCriterion("userId is not null");
			return (Criteria) this;
		}

		public Criteria andUserIdEqualTo(String value) {
			addCriterion("userId =", value, "userId");
			return (Criteria) this;
		}

		public Criteria andUserIdNotEqualTo(String value) {
			addCriterion("userId <>", value, "userId");
			return (Criteria) this;
		}

		public Criteria andUserIdGreaterThan(String value) {
			addCriterion("userId >", value, "userId");
			return (Criteria) this;
		}

		public Criteria andUserIdGreaterThanOrEqualTo(String value) {
			addCriterion("userId >=", value, "userId");
			return (Criteria) this;
		}

		public Criteria andUserIdLessThan(String value) {
			addCriterion("userId <", value, "userId");
			return (Criteria) this;
		}

		public Criteria andUserIdLessThanOrEqualTo(String value) {
			addCriterion("userId <=", value, "userId");
			return (Criteria) this;
		}

		public Criteria andUserIdIn(List<String> values) {
			addCriterion("userId in", values, "userId");
			return (Criteria) this;
		}

		public Criteria andUserIdNotIn(List<String> values) {
			addCriterion("userId not in", values, "userId");
			return (Criteria) this;
		}

		public Criteria andUserIdBetween(String value1, String value2) {
			addCriterion("userId between", value1, value2, "userId");
			return (Criteria) this;
		}

		public Criteria andUserIdNotBetween(String value1, String value2) {
			addCriterion("userId not between", value1, value2, "userId");
			return (Criteria) this;
		}

		public Criteria andCard_noIsNull() {
			addCriterion("card_no is null");
			return (Criteria) this;
		}

		public Criteria andCard_noIsNotNull() {
			addCriterion("card_no is not null");
			return (Criteria) this;
		}

		public Criteria andCard_noEqualTo(String value) {
			addCriterion("card_no =", value, "card_no");
			return (Criteria) this;
		}

		public Criteria andCard_noNotEqualTo(String value) {
			addCriterion("card_no <>", value, "card_no");
			return (Criteria) this;
		}

		public Criteria andCard_noGreaterThan(String value) {
			addCriterion("card_no >", value, "card_no");
			return (Criteria) this;
		}

		public Criteria andCard_noGreaterThanOrEqualTo(String value) {
			addCriterion("card_no >=", value, "card_no");
			return (Criteria) this;
		}

		public Criteria andCard_noLessThan(String value) {
			addCriterion("card_no <", value, "card_no");
			return (Criteria) this;
		}

		public Criteria andCard_noLessThanOrEqualTo(String value) {
			addCriterion("card_no <=", value, "card_no");
			return (Criteria) this;
		}

		public Criteria andCard_noLike(String value) {
			addCriterion("card_no like", value, "card_no");
			return (Criteria) this;
		}

		public Criteria andCard_noNotLike(String value) {
			addCriterion("card_no not like", value, "card_no");
			return (Criteria) this;
		}

		public Criteria andCard_noIn(List<String> values) {
			addCriterion("card_no in", values, "card_no");
			return (Criteria) this;
		}

		public Criteria andCard_noNotIn(List<String> values) {
			addCriterion("card_no not in", values, "card_no");
			return (Criteria) this;
		}

		public Criteria andCard_noBetween(String value1, String value2) {
			addCriterion("card_no between", value1, value2, "card_no");
			return (Criteria) this;
		}

		public Criteria andCard_noNotBetween(String value1, String value2) {
			addCriterion("card_no not between", value1, value2, "card_no");
			return (Criteria) this;
		}

		public Criteria andOrder_noIsNull() {
			addCriterion("order_no is null");
			return (Criteria) this;
		}

		public Criteria andOrder_noIsNotNull() {
			addCriterion("order_no is not null");
			return (Criteria) this;
		}

		public Criteria andOrder_noEqualTo(String value) {
			addCriterion("order_no =", value, "order_no");
			return (Criteria) this;
		}

		public Criteria andOrder_noNotEqualTo(String value) {
			addCriterion("order_no <>", value, "order_no");
			return (Criteria) this;
		}

		public Criteria andOrder_noGreaterThan(String value) {
			addCriterion("order_no >", value, "order_no");
			return (Criteria) this;
		}

		public Criteria andOrder_noGreaterThanOrEqualTo(String value) {
			addCriterion("order_no >=", value, "order_no");
			return (Criteria) this;
		}

		public Criteria andOrder_noLessThan(String value) {
			addCriterion("order_no <", value, "order_no");
			return (Criteria) this;
		}

		public Criteria andOrder_noLessThanOrEqualTo(String value) {
			addCriterion("order_no <=", value, "order_no");
			return (Criteria) this;
		}

		public Criteria andOrder_noLike(String value) {
			addCriterion("order_no like", value, "order_no");
			return (Criteria) this;
		}

		public Criteria andOrder_noNotLike(String value) {
			addCriterion("order_no not like", value, "order_no");
			return (Criteria) this;
		}

		public Criteria andOrder_noIn(List<String> values) {
			addCriterion("order_no in", values, "order_no");
			return (Criteria) this;
		}

		public Criteria andOrder_noNotIn(List<String> values) {
			addCriterion("order_no not in", values, "order_no");
			return (Criteria) this;
		}

		public Criteria andOrder_noBetween(String value1, String value2) {
			addCriterion("order_no between", value1, value2, "order_no");
			return (Criteria) this;
		}

		public Criteria andOrder_noNotBetween(String value1, String value2) {
			addCriterion("order_no not between", value1, value2, "order_no");
			return (Criteria) this;
		}

		public Criteria andMoneyIsNull() {
			addCriterion("money is null");
			return (Criteria) this;
		}

		public Criteria andMoneyIsNotNull() {
			addCriterion("money is not null");
			return (Criteria) this;
		}

		public Criteria andMoneyEqualTo(Integer value) {
			addCriterion("money =", value, "money");
			return (Criteria) this;
		}

		public Criteria andMoneyNotEqualTo(Integer value) {
			addCriterion("money <>", value, "money");
			return (Criteria) this;
		}

		public Criteria andMoneyGreaterThan(Integer value) {
			addCriterion("money >", value, "money");
			return (Criteria) this;
		}

		public Criteria andMoneyGreaterThanOrEqualTo(Integer value) {
			addCriterion("money >=", value, "money");
			return (Criteria) this;
		}

		public Criteria andMoneyLessThan(Integer value) {
			addCriterion("money <", value, "money");
			return (Criteria) this;
		}

		public Criteria andMoneyLessThanOrEqualTo(Integer value) {
			addCriterion("money <=", value, "money");
			return (Criteria) this;
		}

		public Criteria andMoneyIn(List<Integer> values) {
			addCriterion("money in", values, "money");
			return (Criteria) this;
		}

		public Criteria andMoneyNotIn(List<Integer> values) {
			addCriterion("money not in", values, "money");
			return (Criteria) this;
		}

		public Criteria andMoneyBetween(Integer value1, Integer value2) {
			addCriterion("money between", value1, value2, "money");
			return (Criteria) this;
		}

		public Criteria andMoneyNotBetween(Integer value1, Integer value2) {
			addCriterion("money not between", value1, value2, "money");
			return (Criteria) this;
		}

		public Criteria andPay_typeIsNull() {
			addCriterion("pay_type is null");
			return (Criteria) this;
		}

		public Criteria andPay_typeIsNotNull() {
			addCriterion("pay_type is not null");
			return (Criteria) this;
		}

		public Criteria andPay_typeEqualTo(Integer value) {
			addCriterion("pay_type =", value, "pay_type");
			return (Criteria) this;
		}

		public Criteria andPay_typeNotEqualTo(Integer value) {
			addCriterion("pay_type <>", value, "pay_type");
			return (Criteria) this;
		}

		public Criteria andPay_typeGreaterThan(Integer value) {
			addCriterion("pay_type >", value, "pay_type");
			return (Criteria) this;
		}

		public Criteria andPay_typeGreaterThanOrEqualTo(Integer value) {
			addCriterion("pay_type >=", value, "pay_type");
			return (Criteria) this;
		}

		public Criteria andPay_typeLessThan(Integer value) {
			addCriterion("pay_type <", value, "pay_type");
			return (Criteria) this;
		}

		public Criteria andPay_typeLessThanOrEqualTo(Integer value) {
			addCriterion("pay_type <=", value, "pay_type");
			return (Criteria) this;
		}

		public Criteria andPay_typeIn(List<Integer> values) {
			addCriterion("pay_type in", values, "pay_type");
			return (Criteria) this;
		}

		public Criteria andPay_typeNotIn(List<Integer> values) {
			addCriterion("pay_type not in", values, "pay_type");
			return (Criteria) this;
		}

		public Criteria andPay_typeBetween(Integer value1, Integer value2) {
			addCriterion("pay_type between", value1, value2, "pay_type");
			return (Criteria) this;
		}

		public Criteria andPay_typeNotBetween(Integer value1, Integer value2) {
			addCriterion("pay_type not between", value1, value2, "pay_type");
			return (Criteria) this;
		}

		public Criteria andOrder_statusIsNull() {
			addCriterion("order_status is null");
			return (Criteria) this;
		}

		public Criteria andOrder_statusIsNotNull() {
			addCriterion("order_status is not null");
			return (Criteria) this;
		}

		public Criteria andOrder_statusEqualTo(Integer value) {
			addCriterion("order_status =", value, "order_status");
			return (Criteria) this;
		}

		public Criteria andOrder_statusNotEqualTo(Integer value) {
			addCriterion("order_status <>", value, "order_status");
			return (Criteria) this;
		}

		public Criteria andOrder_statusGreaterThan(Integer value) {
			addCriterion("order_status >", value, "order_status");
			return (Criteria) this;
		}

		public Criteria andOrder_statusGreaterThanOrEqualTo(Integer value) {
			addCriterion("order_status >=", value, "order_status");
			return (Criteria) this;
		}

		public Criteria andOrder_statusLessThan(Integer value) {
			addCriterion("order_status <", value, "order_status");
			return (Criteria) this;
		}

		public Criteria andOrder_statusLessThanOrEqualTo(Integer value) {
			addCriterion("order_status <=", value, "order_status");
			return (Criteria) this;
		}

		public Criteria andOrder_statusIn(List<Integer> values) {
			addCriterion("order_status in", values, "order_status");
			return (Criteria) this;
		}

		public Criteria andOrder_statusNotIn(List<Integer> values) {
			addCriterion("order_status not in", values, "order_status");
			return (Criteria) this;
		}

		public Criteria andOrder_statusBetween(Integer value1, Integer value2) {
			addCriterion("order_status between", value1, value2, "order_status");
			return (Criteria) this;
		}

		public Criteria andOrder_statusNotBetween(Integer value1, Integer value2) {
			addCriterion("order_status not between", value1, value2, "order_status");
			return (Criteria) this;
		}

		public Criteria andCreate_timeIsNull() {
			addCriterion("create_time is null");
			return (Criteria) this;
		}

		public Criteria andCreate_timeIsNotNull() {
			addCriterion("create_time is not null");
			return (Criteria) this;
		}

		public Criteria andCreate_timeEqualTo(Date value) {
			addCriterion("create_time =", value, "create_time");
			return (Criteria) this;
		}

		public Criteria andCreate_timeNotEqualTo(Date value) {
			addCriterion("create_time <>", value, "create_time");
			return (Criteria) this;
		}

		public Criteria andCreate_timeGreaterThan(Date value) {
			addCriterion("create_time >", value, "create_time");
			return (Criteria) this;
		}

		public Criteria andCreate_timeGreaterThanOrEqualTo(Date value) {
			addCriterion("create_time >=", value, "create_time");
			return (Criteria) this;
		}

		public Criteria andCreate_timeLessThan(Date value) {
			addCriterion("create_time <", value, "create_time");
			return (Criteria) this;
		}

		public Criteria andCreate_timeLessThanOrEqualTo(Date value) {
			addCriterion("create_time <=", value, "create_time");
			return (Criteria) this;
		}

		public Criteria andCreate_timeIn(List<Date> values) {
			addCriterion("create_time in", values, "create_time");
			return (Criteria) this;
		}

		public Criteria andCreate_timeNotIn(List<Date> values) {
			addCriterion("create_time not in", values, "create_time");
			return (Criteria) this;
		}

		public Criteria andCreate_timeBetween(Date value1, Date value2) {
			addCriterion("create_time between", value1, value2, "create_time");
			return (Criteria) this;
		}

		public Criteria andCreate_timeNotBetween(Date value1, Date value2) {
			addCriterion("create_time not between", value1, value2, "create_time");
			return (Criteria) this;
		}
	}

	public static class Criteria extends GeneratedCriteria {

		protected Criteria() {
			super();
		}
	}

	public static class Criterion {
		private String condition;

		private Object value;

		private Object secondValue;

		private boolean noValue;

		private boolean singleValue;

		private boolean betweenValue;

		private boolean listValue;

		private String typeHandler;

		public String getCondition() {
			return condition;
		}

		public Object getValue() {
			return value;
		}

		public Object getSecondValue() {
			return secondValue;
		}

		public boolean isNoValue() {
			return noValue;
		}

		public boolean isSingleValue() {
			return singleValue;
		}

		public boolean isBetweenValue() {
			return betweenValue;
		}

		public boolean isListValue() {
			return listValue;
		}

		public String getTypeHandler() {
			return typeHandler;
		}

		protected Criterion(String condition) {
			super();
			this.condition = condition;
			this.typeHandler = null;
			this.noValue = true;
		}

		protected Criterion(String condition, Object value, String typeHandler) {
			super();
			this.condition = condition;
			this.value = value;
			this.typeHandler = typeHandler;
			if (value instanceof List<?>) {
				this.listValue = true;
			} else {
				this.singleValue = true;
			}
		}

		protected Criterion(String condition, Object value) {
			this(condition, value, null);
		}

		protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
			super();
			this.condition = condition;
			this.value = value;
			this.secondValue = secondValue;
			this.typeHandler = typeHandler;
			this.betweenValue = true;
		}

		protected Criterion(String condition, Object value, Object secondValue) {
			this(condition, value, secondValue, null);
		}
	}
}